
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.awt.image.VolatileImage;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.border.Border;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author saluzzo
 */
public class newIHM extends IHMplateau {

    public newIHM(InterfacePlateau p, InterfaceJoueur player1, InterfaceJoueur player2) {
        super(p, player1, player2);
        this.menu.setBackground(Color.BLACK);
        this.activeJoueur.setBackground(Color.LIGHT_GRAY);
        this.reset.setBackground(Color.LIGHT_GRAY);
        this.quiJoue.setFont(new Font(Font.SANS_SERIF, Font.ITALIC|Font.BOLD, 16));
        this.quiJoue.setForeground(Color.LIGHT_GRAY);
        this.score.setForeground(Color.red);

        for(int i=0; i<this.gridLayout.getColumns(); i++) {
            for(int j=0; j<this.gridLayout.getRows();j++) {
                this.tabboutton[i][j].setBackground(Color.DARK_GRAY);
                this.tabboutton[i][j].setBorder(BorderFactory.createLineBorder(Color.black));
            }
        }

        this.jFrame.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        
    }

    public void changeImage() {
        this.blanc.setImage(Toolkit.getDefaultToolkit().getImage("blanc.png"));
        this.noir.setImage(Toolkit.getDefaultToolkit().getImage("noir.png"));
        this.jFrame.setSize(this.jFrame.getWidth()+20, this.jFrame.getHeight()+120);
    }

}
